]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
environment: Require GnomeBluetooth 1.0
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sun, 31 Oct 2021 20:24:58 +0000 (17:24 -0300)
committerMarge Bot <marge-bot@gnome.org>
Thu, 11 Nov 2021 19:13:40 +0000 (19:13 +0000)
libgnome-bluetooth will start to offer a 2.0 library version
depending on GTK4. Given that GNOME Shell already depends on
GTK3, it cannot use this next version of gnome-bluetooth. And
since GJS will automatically try and use the latest version
available of any library, Shell must specify it wants 1.0
explicitly.

Add a required GnomeBluetooth version number when importing it
for the status indicator.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2015>

js/ui/environment.js

index ef53e602248cc6ee5794fc6dd0179130b908e4d6..e906fa6c68d173243ab8c6fcba7f1accd94621e1 100644 (file)
@@ -6,6 +6,7 @@ const Config = imports.misc.config;
 imports.gi.versions.Clutter = Config.LIBMUTTER_API_VERSION;
 imports.gi.versions.Gio = '2.0';
 imports.gi.versions.GdkPixbuf = '2.0';
+imports.gi.versions.GnomeBluetooth = '1.0';
 imports.gi.versions.Gtk = '3.0';
 imports.gi.versions.Soup = '3.0';
 imports.gi.versions.TelepathyGLib = '0.12';